package cn.tedu.teacher;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class TeacherConfig {

    @Bean
    public Teacher teacher(){
        Teacher t=new Teacher();
        t.setId(1001);
        t.setName("苍苍");
        t.setGender("男");
        t.setMajor("java");
        return t;
    }


}
